package org.ak47.spring.boot.grpc.annotations;


import io.grpc.ClientInterceptor;

import java.lang.annotation.*;


/**
 * 使用此注解注入 客户端通道
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface GrpcClient {

    String value() default "localhost";

    Class<? extends ClientInterceptor>[] interceptors() default {};
}